﻿namespace HRM.CORE
{
    using DevExpress.Data;
    using DevExpress.Utils;
    using DevExpress.XtraBars;
    using DevExpress.XtraBars.Docking;
    using DevExpress.XtraEditors.Controls;
    using DevExpress.XtraEditors.Repository;
    using DevExpress.XtraGrid;
    using DevExpress.XtraGrid.Columns;
    using DevExpress.XtraGrid.Views.BandedGrid;
    using DevExpress.XtraGrid.Views.Base;
    using DevExpress.XtraGrid.Views.Grid;
    using APP.HELPER;
    using Common.Class; using APP.HELPER.Utils.Language; using Security.Security; using Dictionary.ERP;
    using Common.Report;
    using HRM.CORE;
    using HRM.CORE.REPORT;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms; using Common;

    public class xucTimeKeeperFurlough : Common.xucBase
    {
        private Bar bar1;
        private BarDockControl barDockControlBottom;
        private BarDockControl barDockControlLeft;
        private BarDockControl barDockControlRight;
        private BarDockControl barDockControlTop;
        private BarManager barManager1;
        private BarEditItem bbeYear;
        private BarButtonItem bbiClose;
        private BarButtonItem bbiExport;
        private BarButtonItem bbiFormula;
        private BarButtonItem bbiPrint;
        private BarButtonItem bbiReload;
        private Common.Class.clsAllOption clsAllOption = new Common.Class.clsAllOption();
        private GridColumn colEmployeeCode;
        private GridColumn colFirstName;
        private BandedGridColumn colFurloughThisYear;
        private GridColumn colLastName;
        private BandedGridColumn colMonth1;
        private BandedGridColumn colMonth10;
        private BandedGridColumn colMonth11;
        private BandedGridColumn colMonth12;
        private BandedGridColumn colMonth2;
        private BandedGridColumn colMonth3;
        private BandedGridColumn colMonth4;
        private BandedGridColumn colMonth5;
        private BandedGridColumn colMonth6;
        private BandedGridColumn colMonth7;
        private BandedGridColumn colMonth8;
        private BandedGridColumn colMonth9;
        private BandedGridColumn colNumberOfYear;
        private BandedGridColumn colRemainDay;
        private BandedGridColumn colTotalDay;
        private BandedGridColumn colYearOfWork;
        private IContainer components = null;
        private DockManager dockManager1;
        private DockPanel dockPanel1;
        private ControlContainer dockPanel1_Container;
        private AdvBandedGridView gbList;
        private GridControl gcList;
        private GridBand gridBand1;
        private GridBand gridBand2;
        private GridBand gridBand3;
        private GridBand gridBand4;
        private GridColumn gridColumn1;
        private GridColumn gridColumn2;
        private BandedGridColumn gridColumn3;
        private BandedGridColumn gridColumn4;
        private BandedGridColumn gridColumn5;
        private AutoHideContainer hideContainerLeft;
        public DevExpress.Utils.ImageCollection imageCollection2;
        private string m_Code = MyLogin.Code;
        private int m_Level = MyLogin.Level;
        private int m_Year = 0;
        private RepositoryItemImageComboBox repBranch;
        private RepositoryItemCalcEdit repCalculator;
        private RepositoryItemImageComboBox repDepartment;
        private RepositoryItemGridLookUpEdit repEmployee;
        private RepositoryItemComboBox repEmployeeName;
        private RepositoryItemImageComboBox repGroup;
        private RepositoryItemComboBox repositoryItemComboBox1;
        private GridView repositoryItemGridLookUpEdit1View;
        private RepositoryItemTimeEdit repYear;
        private xucOrganization xucOrganization1;

        public event ClosedHander Closed;

        public xucTimeKeeperFurlough()
        {
            this.InitializeComponent();
            this.Init();
        }

        private void bbiClose_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (base.ParentForm != null)
            {
                base.ParentForm.Close();
            }
        }

        private void bbiExport_ItemClick(object sender, ItemClickEventArgs e)
        {
            base._exportView = this.gbList;
            SYS_LOG.Insert("Bảng Lương Theo Ph\x00f2ng Ban", "Xuất");
            base.Export();
        }

        private void bbiPrint_ItemClick(object sender, ItemClickEventArgs e)
        {
            SYS_LOG.Insert("Bảng Lương", "In");
            xfmReport report = new xfmReport();
            rptTimeKeeperFurlough xtraReport = new rptTimeKeeperFurlough(this.m_Level, this.m_Code, this.m_Year);
            report.SetTitle("Bảng Lương Nh\x00e2n Vi\x00ean Năm " + this.m_Year.ToString());
            report.ShowPrintPreview(xtraReport);
        }

        private void bbiReload_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.LoadGrid(this.m_Level, this.m_Code);
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void gbList_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
        {
            if (e.RowHandle == -2147483648)
            {
                e.Handled = true;
                e.Painter.DrawObject(e.Info);
                Rectangle bounds = e.Bounds;
                e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(0x3f, 0xa5, 0xa5, 0)), bounds);
                bounds.Height--;
                bounds.Width--;
                e.Graphics.DrawRectangle(Pens.Blue, bounds);
            }
            int rowHandle = e.RowHandle;
            if (rowHandle >= 0)
            {
                rowHandle++;
                e.Info.DisplayText = rowHandle.ToString();
            }
        }

        private void Init()
        {
            base.SetWaitDialogCaption("Đang khởi tạo dữ liệu....");
            this.m_Year = this.clsAllOption.MonthDefault.Year;
            this.bbeYear.EditValue = this.clsAllOption.MonthDefault;
            this.repYear.EditValueChanging += new ChangingEventHandler(this.repYear_EditValueChanging);
            this.repYear.EditValueChanged += new EventHandler(this.repYear_EditValueChanged);
            this.LoadGrid(this.m_Level, this.m_Code);
            this.xucOrganization1.LoadData();
            this.xucOrganization1.Selected += delegate (object s, Organization o) {
                if (o.Level == 0)
                {
                    this.LoadGrid(this.m_Level = 0, this.m_Code = "");
                }
                else if (o.Level == 1)
                {
                    this.LoadGrid(this.m_Level = 1, this.m_Code = o.BranchCode);
                }
                else if (o.Level == 2)
                {
                    this.LoadGrid(this.m_Level = 2, this.m_Code = o.DepartmentCode);
                }
                else if (o.Level == 3)
                {
                    this.LoadGrid(this.m_Level = 3, this.m_Code = o.GroupCode);
                }
            };
            this.xucOrganization1.Updated += o => this.xucOrganization1.LoadData();
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            SuperToolTip tip = new SuperToolTip();
            ToolTipItem item = new ToolTipItem();
            SuperToolTip tip2 = new SuperToolTip();
            ToolTipItem item2 = new ToolTipItem();
            SuperToolTip tip3 = new SuperToolTip();
            ToolTipItem item3 = new ToolTipItem();
            SuperToolTip tip4 = new SuperToolTip();
            ToolTipItem item4 = new ToolTipItem();
            MenuButton button = new MenuButton();
            ItemCommand command = new ItemCommand();
            ItemCommand command2 = new ItemCommand();
            ItemCommand command3 = new ItemCommand();
            ItemCommand command4 = new ItemCommand();
            ItemCommand command5 = new ItemCommand();
            ItemCommand command6 = new ItemCommand();
            ItemCommand command7 = new ItemCommand();
            ItemCommand command8 = new ItemCommand();
            ItemCommand command9 = new ItemCommand();
            ItemCommand command10 = new ItemCommand();
            ItemCommand command11 = new ItemCommand();
            ItemCommand command12 = new ItemCommand();
            ItemCommand command13 = new ItemCommand();
            ItemCommand command14 = new ItemCommand();
            ItemCommand command15 = new ItemCommand();
            ItemCommand command16 = new ItemCommand();
            ItemCommand command17 = new ItemCommand();
            ItemCommand command18 = new ItemCommand();
            ItemCommand command19 = new ItemCommand();
            ItemCommand command20 = new ItemCommand();
            ItemCommand command21 = new ItemCommand();
            ItemCommand command22 = new ItemCommand();
            ItemCommand command23 = new ItemCommand();
            ItemCommand command24 = new ItemCommand();
            ItemCommand command25 = new ItemCommand();
            ItemCommand command26 = new ItemCommand();
            ItemCommand command27 = new ItemCommand();
            ItemCommand command28 = new ItemCommand();
            ItemCommand command29 = new ItemCommand();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(xucTimeKeeperFurlough));
            StyleFormatCondition condition = new StyleFormatCondition();
            StyleFormatCondition condition2 = new StyleFormatCondition();
            StyleFormatCondition condition3 = new StyleFormatCondition();
            StyleFormatCondition condition4 = new StyleFormatCondition();
            StyleFormatCondition condition5 = new StyleFormatCondition();
            StyleFormatCondition condition6 = new StyleFormatCondition();
            StyleFormatCondition condition7 = new StyleFormatCondition();
            StyleFormatCondition condition8 = new StyleFormatCondition();
            StyleFormatCondition condition9 = new StyleFormatCondition();
            StyleFormatCondition condition10 = new StyleFormatCondition();
            StyleFormatCondition condition11 = new StyleFormatCondition();
            StyleFormatCondition condition12 = new StyleFormatCondition();
            this.colMonth1 = new BandedGridColumn();
            this.repCalculator = new RepositoryItemCalcEdit();
            this.colMonth2 = new BandedGridColumn();
            this.colMonth3 = new BandedGridColumn();
            this.colMonth4 = new BandedGridColumn();
            this.colMonth5 = new BandedGridColumn();
            this.colMonth6 = new BandedGridColumn();
            this.colMonth7 = new BandedGridColumn();
            this.colMonth8 = new BandedGridColumn();
            this.colMonth9 = new BandedGridColumn();
            this.colMonth10 = new BandedGridColumn();
            this.colMonth11 = new BandedGridColumn();
            this.colMonth12 = new BandedGridColumn();
            this.barManager1 = new BarManager(this.components);
            this.bar1 = new Bar();
            this.bbeYear = new BarEditItem();
            this.repYear = new RepositoryItemTimeEdit();
            this.bbiPrint = new BarButtonItem();
            this.bbiExport = new BarButtonItem();
            this.bbiReload = new BarButtonItem();
            this.bbiClose = new BarButtonItem();
            this.barDockControlTop = new BarDockControl();
            this.barDockControlBottom = new BarDockControl();
            this.barDockControlLeft = new BarDockControl();
            this.barDockControlRight = new BarDockControl();
            this.dockManager1 = new DockManager(this.components);
            this.hideContainerLeft = new AutoHideContainer();
            this.dockPanel1 = new DockPanel();
            this.dockPanel1_Container = new ControlContainer();
            this.xucOrganization1 = new xucOrganization();
            this.imageCollection2 = new DevExpress.Utils.ImageCollection(this.components);
            this.bbiFormula = new BarButtonItem();
            this.repEmployeeName = new RepositoryItemComboBox();
            this.repEmployee = new RepositoryItemGridLookUpEdit();
            this.repositoryItemGridLookUpEdit1View = new GridView();
            this.colEmployeeCode = new GridColumn();
            this.colFirstName = new GridColumn();
            this.colLastName = new GridColumn();
            this.repositoryItemComboBox1 = new RepositoryItemComboBox();
            this.repDepartment = new RepositoryItemImageComboBox();
            this.repBranch = new RepositoryItemImageComboBox();
            this.repGroup = new RepositoryItemImageComboBox();
            this.gridColumn1 = new GridColumn();
            this.gridColumn2 = new GridColumn();
            this.gcList = new GridControl();
            this.gbList = new AdvBandedGridView();
            this.gridBand1 = new GridBand();
            this.gridColumn3 = new BandedGridColumn();
            this.gridColumn4 = new BandedGridColumn();
            this.gridColumn5 = new BandedGridColumn();
            this.gridBand4 = new GridBand();
            this.colYearOfWork = new BandedGridColumn();
            this.colNumberOfYear = new BandedGridColumn();
            this.colFurloughThisYear = new BandedGridColumn();
            this.gridBand2 = new GridBand();
            this.gridBand3 = new GridBand();
            this.colTotalDay = new BandedGridColumn();
            this.colRemainDay = new BandedGridColumn();
            this.repCalculator.BeginInit();
            this.barManager1.BeginInit();
            this.repYear.BeginInit();
            this.dockManager1.BeginInit();
            this.hideContainerLeft.SuspendLayout();
            this.dockPanel1.SuspendLayout();
            this.dockPanel1_Container.SuspendLayout();
            this.imageCollection2.BeginInit();
            this.repEmployeeName.BeginInit();
            this.repEmployee.BeginInit();
            this.repositoryItemGridLookUpEdit1View.BeginInit();
            this.repositoryItemComboBox1.BeginInit();
            this.repDepartment.BeginInit();
            this.repBranch.BeginInit();
            this.repGroup.BeginInit();
            this.gcList.BeginInit();
            this.gbList.BeginInit();
            base.SuspendLayout();
            this.colMonth1.Caption = "1";
            this.colMonth1.ColumnEdit = this.repCalculator;
            this.colMonth1.FieldName = "M1";
            this.colMonth1.Name = "colMonth1";
            this.colMonth1.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colMonth1.OptionsColumn.ReadOnly = true;
            this.colMonth1.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMonth1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMonth1.Visible = true;
            this.colMonth1.Width = 40;
            this.repCalculator.AutoHeight = false;
            this.repCalculator.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repCalculator.DisplayFormat.FormatString = "{0:##,##0}";
            this.repCalculator.EditFormat.FormatString = "{0:##,##0}";
            this.repCalculator.Mask.UseMaskAsDisplayFormat = true;
            this.repCalculator.Name = "repCalculator";
            this.colMonth2.Caption = "2";
            this.colMonth2.ColumnEdit = this.repCalculator;
            this.colMonth2.FieldName = "M2";
            this.colMonth2.Name = "colMonth2";
            this.colMonth2.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colMonth2.OptionsColumn.ReadOnly = true;
            this.colMonth2.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMonth2.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMonth2.Visible = true;
            this.colMonth2.Width = 40;
            this.colMonth3.Caption = "3";
            this.colMonth3.ColumnEdit = this.repCalculator;
            this.colMonth3.FieldName = "M3";
            this.colMonth3.Name = "colMonth3";
            this.colMonth3.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colMonth3.OptionsColumn.ReadOnly = true;
            this.colMonth3.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMonth3.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMonth3.Visible = true;
            this.colMonth3.Width = 40;
            this.colMonth4.Caption = "4";
            this.colMonth4.ColumnEdit = this.repCalculator;
            this.colMonth4.FieldName = "M4";
            this.colMonth4.Name = "colMonth4";
            this.colMonth4.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colMonth4.OptionsColumn.ReadOnly = true;
            this.colMonth4.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMonth4.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMonth4.Visible = true;
            this.colMonth4.Width = 40;
            this.colMonth5.Caption = "5";
            this.colMonth5.ColumnEdit = this.repCalculator;
            this.colMonth5.FieldName = "M5";
            this.colMonth5.Name = "colMonth5";
            this.colMonth5.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colMonth5.OptionsColumn.ReadOnly = true;
            this.colMonth5.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMonth5.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMonth5.Visible = true;
            this.colMonth5.Width = 40;
            this.colMonth6.Caption = "6";
            this.colMonth6.ColumnEdit = this.repCalculator;
            this.colMonth6.FieldName = "M6";
            this.colMonth6.Name = "colMonth6";
            this.colMonth6.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colMonth6.OptionsColumn.ReadOnly = true;
            this.colMonth6.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMonth6.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMonth6.Visible = true;
            this.colMonth6.Width = 40;
            this.colMonth7.Caption = "7";
            this.colMonth7.ColumnEdit = this.repCalculator;
            this.colMonth7.FieldName = "M7";
            this.colMonth7.Name = "colMonth7";
            this.colMonth7.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colMonth7.OptionsColumn.ReadOnly = true;
            this.colMonth7.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMonth7.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMonth7.Visible = true;
            this.colMonth7.Width = 40;
            this.colMonth8.Caption = "8";
            this.colMonth8.ColumnEdit = this.repCalculator;
            this.colMonth8.FieldName = "M8";
            this.colMonth8.Name = "colMonth8";
            this.colMonth8.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colMonth8.OptionsColumn.ReadOnly = true;
            this.colMonth8.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMonth8.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMonth8.Visible = true;
            this.colMonth8.Width = 40;
            this.colMonth9.Caption = "9";
            this.colMonth9.ColumnEdit = this.repCalculator;
            this.colMonth9.FieldName = "M9";
            this.colMonth9.Name = "colMonth9";
            this.colMonth9.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colMonth9.OptionsColumn.ReadOnly = true;
            this.colMonth9.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMonth9.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMonth9.Visible = true;
            this.colMonth9.Width = 40;
            this.colMonth10.Caption = "10";
            this.colMonth10.ColumnEdit = this.repCalculator;
            this.colMonth10.FieldName = "M10";
            this.colMonth10.Name = "colMonth10";
            this.colMonth10.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colMonth10.OptionsColumn.ReadOnly = true;
            this.colMonth10.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMonth10.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMonth10.Visible = true;
            this.colMonth10.Width = 40;
            this.colMonth11.Caption = "11";
            this.colMonth11.ColumnEdit = this.repCalculator;
            this.colMonth11.FieldName = "M11";
            this.colMonth11.Name = "colMonth11";
            this.colMonth11.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colMonth11.OptionsColumn.ReadOnly = true;
            this.colMonth11.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMonth11.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMonth11.Visible = true;
            this.colMonth11.Width = 40;
            this.colMonth12.Caption = "12";
            this.colMonth12.ColumnEdit = this.repCalculator;
            this.colMonth12.FieldName = "M12";
            this.colMonth12.Name = "colMonth12";
            this.colMonth12.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colMonth12.OptionsColumn.ReadOnly = true;
            this.colMonth12.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMonth12.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMonth12.Visible = true;
            this.colMonth12.Width = 40;
            this.barManager1.Bars.AddRange(new Bar[] { this.bar1 });
            this.barManager1.DockControls.Add(this.barDockControlTop);
            this.barManager1.DockControls.Add(this.barDockControlBottom);
            this.barManager1.DockControls.Add(this.barDockControlLeft);
            this.barManager1.DockControls.Add(this.barDockControlRight);
            this.barManager1.DockManager = this.dockManager1;
            this.barManager1.Form = this;
            this.barManager1.Images = this.imageCollection2;
            this.barManager1.Items.AddRange(new BarItem[] { this.bbiPrint, this.bbiReload, this.bbiFormula, this.bbiClose, this.bbeYear, this.bbiExport });
            this.barManager1.MaxItemId = 0x1a;
            this.barManager1.RepositoryItems.AddRange(new RepositoryItem[] { this.repYear, this.repEmployeeName, this.repEmployee, this.repositoryItemComboBox1, this.repDepartment, this.repBranch, this.repGroup });
            this.bar1.BarName = "Tools";
            this.bar1.DockCol = 0;
            this.bar1.DockRow = 0;
            this.bar1.DockStyle = BarDockStyle.Top;
            this.bar1.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbeYear, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiPrint, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiExport, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiReload, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiClose, BarItemPaintStyle.CaptionGlyph) });
            this.bar1.OptionsBar.UseWholeRow = true;
            this.bar1.Text = "Tools";
            this.bbeYear.Caption = "Năm:";
            this.bbeYear.Edit = this.repYear;
            this.bbeYear.Id = 14;
            this.bbeYear.Name = "bbeYear";
            this.repYear.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repYear.Appearance.Options.UseFont = true;
            this.repYear.AutoHeight = false;
            this.repYear.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.repYear.Mask.EditMask = "yyyy";
            this.repYear.Name = "repYear";
            this.bbiPrint.Caption = "In";
            this.bbiPrint.Id = 5;
            this.bbiPrint.ImageIndex = 9;
            this.bbiPrint.ItemShortcut = new BarShortcut(Keys.Control | Keys.P);
            this.bbiPrint.Name = "bbiPrint";
            item.Text = "Ctrl+P";
            tip.Items.Add(item);
            this.bbiPrint.SuperTip = tip;
            this.bbiPrint.ItemClick += new ItemClickEventHandler(this.bbiPrint_ItemClick);
            this.bbiExport.Caption = "Xuất";
            this.bbiExport.Id = 0x11;
            this.bbiExport.ImageIndex = 0x31;
            this.bbiExport.ItemShortcut = new BarShortcut(Keys.Control | Keys.E);
            this.bbiExport.Name = "bbiExport";
            item2.Text = "Ctrl+E";
            tip2.Items.Add(item2);
            this.bbiExport.SuperTip = tip2;
            this.bbiExport.ItemClick += new ItemClickEventHandler(this.bbiExport_ItemClick);
            this.bbiReload.Caption = "Nạp Lại";
            this.bbiReload.Id = 8;
            this.bbiReload.ImageIndex = 0x2a;
            this.bbiReload.ItemShortcut = new BarShortcut(Keys.F5);
            this.bbiReload.Name = "bbiReload";
            item3.Text = "F5";
            tip3.Items.Add(item3);
            this.bbiReload.SuperTip = tip3;
            this.bbiReload.ItemClick += new ItemClickEventHandler(this.bbiReload_ItemClick);
            this.bbiClose.Caption = "Đ\x00f3ng";
            this.bbiClose.Id = 12;
            this.bbiClose.ImageIndex = 0x16;
            this.bbiClose.ItemShortcut = new BarShortcut(Keys.F10);
            this.bbiClose.Name = "bbiClose";
            item4.Text = "F10";
            tip4.Items.Add(item4);
            this.bbiClose.SuperTip = tip4;
            this.bbiClose.ItemClick += new ItemClickEventHandler(this.bbiClose_ItemClick);
            this.dockManager1.AutoHideContainers.AddRange(new AutoHideContainer[] { this.hideContainerLeft });
            this.dockManager1.Form = this;
            this.dockManager1.TopZIndexControls.AddRange(new string[] { "DevExpress.XtraBars.BarDockControl", "DevExpress.XtraBars.StandaloneBarDockControl", "System.Windows.Forms.StatusBar", "DevExpress.XtraBars.Ribbon.RibbonStatusBar", "DevExpress.XtraBars.Ribbon.RibbonControl" });
            this.hideContainerLeft.Controls.Add(this.dockPanel1);
            this.hideContainerLeft.Dock = DockStyle.Left;
            this.hideContainerLeft.Location = new Point(0, 0x1a);
            this.hideContainerLeft.Name = "hideContainerLeft";
            this.hideContainerLeft.Size = new Size(0x13, 0x261);
            this.dockPanel1.Controls.Add(this.dockPanel1_Container);
            this.dockPanel1.Dock = DockingStyle.Left;
            this.dockPanel1.ID = new Guid("d7780374-5c6d-46c9-b880-4e1e6733d6b5");
            this.dockPanel1.Location = new Point(0, 0);
            this.dockPanel1.Name = "dockPanel1";
            this.dockPanel1.OriginalSize = new Size(0x108, 200);
            this.dockPanel1.SavedDock = DockingStyle.Left;
            this.dockPanel1.SavedIndex = 0;
            this.dockPanel1.Size = new Size(0x108, 0x261);
            this.dockPanel1.Text = "Ph\x00f2ng Ban V\x00e0 Tổ Nh\x00f3m";
            this.dockPanel1.Visibility = DockVisibility.AutoHide;
            this.dockPanel1_Container.Controls.Add(this.xucOrganization1);
            this.dockPanel1_Container.Location = new Point(3, 0x19);
            this.dockPanel1_Container.Name = "dockPanel1_Container";
            this.dockPanel1_Container.Size = new Size(0x102, 0x245);
            this.dockPanel1_Container.TabIndex = 0;
            this.xucOrganization1.Dock = DockStyle.Fill;
            this.xucOrganization1.IsClose = CloseOrNew.None;
            this.xucOrganization1.Location = new Point(0, 0);
            this.xucOrganization1.Name = "xucOrganization1";
            this.xucOrganization1.NotSave = false;
            command.Caption = "";
            command.Enable = false;
            command.Visibility = BarItemVisibility.Never;
            button.Add = command;
            command2.Caption = "";
            command2.Enable = false;
            command2.Visibility = BarItemVisibility.Never;
            button.Cancel = command2;
            command3.Caption = "";
            command3.Enable = false;
            command3.Visibility = BarItemVisibility.Never;
            button.Change = command3;
            command4.Caption = "";
            command4.Enable = false;
            command4.Visibility = BarItemVisibility.Never;
            button.Close = command4;
            command5.Caption = "";
            command5.Enable = false;
            command5.Visibility = BarItemVisibility.Never;
            button.Custom = command5;
            command6.Caption = "";
            command6.Enable = false;
            command6.Visibility = BarItemVisibility.Never;
            button.Delete = command6;
            command7.Caption = "";
            command7.Enable = false;
            command7.Visibility = BarItemVisibility.Never;
            button.Export = command7;
            command8.Caption = "";
            command8.Enable = false;
            command8.Visibility = BarItemVisibility.Never;
            button.Filter = command8;
            command9.Caption = "";
            command9.Enable = false;
            command9.Visibility = BarItemVisibility.Never;
            button.FilterCustomer = command9;
            command10.Caption = "";
            command10.Enable = false;
            command10.Visibility = BarItemVisibility.Never;
            button.FilterStock = command10;
            command11.Caption = "";
            command11.Enable = false;
            command11.Visibility = BarItemVisibility.Never;
            button.Find = command11;
            button.GClose = false;
            button.GCommand = false;
            button.GExport = false;
            command12.Caption = "";
            command12.Enable = false;
            command12.Visibility = BarItemVisibility.Never;
            button.Go = command12;
            button.GOption = false;
            button.GPrint = false;
            button.GRecords = false;
            button.GSearchBar = false;
            button.GSettings = false;
            button.GVaildation = false;
            command13.Caption = "";
            command13.Enable = false;
            command13.Visibility = BarItemVisibility.Never;
            button.Import = command13;
            command14.Caption = "";
            command14.Enable = false;
            command14.Visibility = BarItemVisibility.Never;
            button.Next = command14;
            command15.Caption = "";
            command15.Enable = false;
            command15.Visibility = BarItemVisibility.Never;
            button.PageSetup = command15;
            button.PHome = false;
            command16.Caption = "";
            command16.Enable = false;
            command16.Visibility = BarItemVisibility.Never;
            button.Previous = command16;
            command17.Caption = "";
            command17.Enable = false;
            command17.Visibility = BarItemVisibility.Never;
            button.Print = command17;
            command18.Caption = "";
            command18.Enable = false;
            command18.Visibility = BarItemVisibility.Never;
            button.PrintPreview = command18;
            button.PTool = false;
            command19.Caption = "";
            command19.Enable = false;
            command19.Visibility = BarItemVisibility.Never;
            button.Redo = command19;
            command20.Caption = "";
            command20.Enable = false;
            command20.Visibility = BarItemVisibility.Never;
            button.Refresh = command20;
            command21.Caption = "";
            command21.Enable = false;
            command21.Visibility = BarItemVisibility.Never;
            button.Save = command21;
            command22.Caption = "";
            command22.Enable = false;
            command22.Visibility = BarItemVisibility.Never;
            button.SaveAndClose = command22;
            command23.Caption = "";
            command23.Enable = false;
            command23.Visibility = BarItemVisibility.Never;
            button.SaveAndNew = command23;
            command24.Caption = "";
            command24.Enable = false;
            command24.Visibility = BarItemVisibility.Never;
            button.Search = command24;
            command25.Caption = "";
            command25.Enable = false;
            command25.Visibility = BarItemVisibility.Never;
            button.SearchText = command25;
            command26.Caption = "";
            command26.Enable = false;
            command26.Visibility = BarItemVisibility.Never;
            button.Task = command26;
            command27.Caption = "";
            command27.Enable = false;
            command27.Visibility = BarItemVisibility.Never;
            button.Undo = command27;
            command28.Caption = "";
            command28.Enable = false;
            command28.Visibility = BarItemVisibility.Never;
            button.Vaildate = command28;
            command29.Caption = "";
            command29.Enable = false;
            command29.Visibility = BarItemVisibility.Never;
            button.View = command29;
            this.xucOrganization1.RibbonBar = button;
            this.xucOrganization1.Size = new Size(0x102, 0x245);
            this.xucOrganization1.Status = Actions.None;
            this.xucOrganization1.TabIndex = 1;
            this.xucOrganization1.Title = "";
            this.imageCollection2.ImageStream = (ImageCollectionStreamer) manager.GetObject("imageCollection2.ImageStream");
            this.imageCollection2.Images.SetKeyName(0x3d, "Vista (35).ico");
            this.imageCollection2.Images.SetKeyName(0x3e, "Security.ico");
            this.imageCollection2.Images.SetKeyName(0x3f, "RibbonPrintPreview_DocumentMapLarge.png");
            this.imageCollection2.Images.SetKeyName(0x40, "11.png");
            this.imageCollection2.Images.SetKeyName(0x41, "Sua.png");
            this.imageCollection2.Images.SetKeyName(0x42, "Them.png");
            this.imageCollection2.Images.SetKeyName(0x43, "PhanQuyen.png");
            this.imageCollection2.Images.SetKeyName(0x44, "11.png");
            this.imageCollection2.Images.SetKeyName(0x45, "plus.png");
            this.bbiFormula.Caption = "Thiết Lập C\x00f4ng Thức";
            this.bbiFormula.Id = 10;
            this.bbiFormula.ImageIndex = 0;
            this.bbiFormula.Name = "bbiFormula";
            this.repEmployeeName.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repEmployeeName.Appearance.Options.UseFont = true;
            this.repEmployeeName.AutoHeight = false;
            this.repEmployeeName.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repEmployeeName.Name = "repEmployeeName";
            this.repEmployeeName.NullText = "[T\x00ean nh\x00e2n vi\x00ean]";
            this.repEmployeeName.ReadOnly = true;
            this.repEmployee.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repEmployee.Appearance.Options.UseFont = true;
            this.repEmployee.AutoHeight = false;
            this.repEmployee.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repEmployee.Name = "repEmployee";
            this.repEmployee.NullText = "[Chọn nh\x00e2n vi\x00ean]";
            this.repEmployee.View = this.repositoryItemGridLookUpEdit1View;
            this.repositoryItemGridLookUpEdit1View.Columns.AddRange(new GridColumn[] { this.colEmployeeCode, this.colFirstName, this.colLastName });
            this.repositoryItemGridLookUpEdit1View.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            this.repositoryItemGridLookUpEdit1View.Name = "repositoryItemGridLookUpEdit1View";
            this.repositoryItemGridLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false;
            this.repositoryItemGridLookUpEdit1View.OptionsView.ShowAutoFilterRow = true;
            this.repositoryItemGridLookUpEdit1View.OptionsView.ShowGroupPanel = false;
            this.colEmployeeCode.Caption = "M\x00e3";
            this.colEmployeeCode.FieldName = "EmployeeCode";
            this.colEmployeeCode.Name = "colEmployeeCode";
            this.colEmployeeCode.Visible = true;
            this.colEmployeeCode.VisibleIndex = 0;
            this.colFirstName.Caption = "Họ l\x00f3t";
            this.colFirstName.FieldName = "FirstName";
            this.colFirstName.Name = "colFirstName";
            this.colFirstName.Visible = true;
            this.colFirstName.VisibleIndex = 1;
            this.colLastName.Caption = "T\x00ean";
            this.colLastName.FieldName = "LastName";
            this.colLastName.Name = "colLastName";
            this.colLastName.Visible = true;
            this.colLastName.VisibleIndex = 2;
            this.repositoryItemComboBox1.AutoHeight = false;
            this.repositoryItemComboBox1.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repositoryItemComboBox1.Name = "repositoryItemComboBox1";
            this.repDepartment.AutoHeight = false;
            this.repDepartment.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repDepartment.Name = "repDepartment";
            this.repBranch.AutoHeight = false;
            this.repBranch.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repBranch.Name = "repBranch";
            this.repGroup.AutoHeight = false;
            this.repGroup.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repGroup.Name = "repGroup";
            this.gridColumn1.Caption = "gridColumn1";
            this.gridColumn1.Name = "gridColumn1";
            this.gridColumn1.Visible = true;
            this.gridColumn1.VisibleIndex = 0;
            this.gridColumn2.Caption = "gridColumn2";
            this.gridColumn2.Name = "gridColumn2";
            this.gridColumn2.Visible = true;
            this.gridColumn2.VisibleIndex = 1;
            this.gcList.Dock = DockStyle.Fill;
            this.gcList.EmbeddedNavigator.Buttons.Append.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.CancelEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Edit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.EndEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Remove.Visible = false;
            this.gcList.EmbeddedNavigator.TextStringFormat = "{0}/{1}";
            this.gcList.Location = new Point(0x13, 0x1a);
            this.gcList.MainView = this.gbList;
            this.gcList.Name = "gcList";
            this.gcList.RepositoryItems.AddRange(new RepositoryItem[] { this.repCalculator });
            this.gcList.Size = new Size(0x41e, 0x261);
            this.gcList.TabIndex = 6;
            this.gcList.UseEmbeddedNavigator = true;
            this.gcList.ViewCollection.AddRange(new BaseView[] { this.gbList });
            this.gbList.Appearance.GroupRow.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.gbList.Appearance.GroupRow.Options.UseFont = true;
            this.gbList.Appearance.HeaderPanel.Options.UseTextOptions = true;
            this.gbList.Appearance.HeaderPanel.TextOptions.HAlignment = HorzAlignment.Center;
            this.gbList.Appearance.HeaderPanel.TextOptions.WordWrap = WordWrap.Wrap;
            this.gbList.Appearance.Row.Options.UseTextOptions = true;
            this.gbList.Appearance.Row.TextOptions.WordWrap = WordWrap.Wrap;
            this.gbList.Bands.AddRange(new GridBand[] { this.gridBand1, this.gridBand4, this.gridBand2, this.gridBand3 });
            this.gbList.BorderStyle = BorderStyles.NoBorder;
            this.gbList.ColumnPanelRowHeight = 0x20;
            this.gbList.Columns.AddRange(new BandedGridColumn[] { 
                this.gridColumn3, this.gridColumn4, this.gridColumn5, this.colYearOfWork, this.colNumberOfYear, this.colFurloughThisYear, this.colMonth1, this.colMonth2, this.colMonth3, this.colMonth4, this.colMonth5, this.colMonth6, this.colMonth7, this.colMonth8, this.colMonth9, this.colMonth10, 
                this.colMonth11, this.colMonth12, this.colTotalDay, this.colRemainDay
             });
            this.gbList.FixedLineWidth = 1;
            this.gbList.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            condition.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition.Appearance.ForeColor = Color.Blue;
            condition.Appearance.Options.UseFont = true;
            condition.Appearance.Options.UseForeColor = true;
            condition.Column = this.colMonth1;
            condition.Condition = FormatConditionEnum.Greater;
            condition.Value1 = "0";
            condition2.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition2.Appearance.ForeColor = Color.Blue;
            condition2.Appearance.Options.UseFont = true;
            condition2.Appearance.Options.UseForeColor = true;
            condition2.Column = this.colMonth2;
            condition2.Condition = FormatConditionEnum.Greater;
            condition2.Value1 = "0";
            condition3.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition3.Appearance.ForeColor = Color.Blue;
            condition3.Appearance.Options.UseFont = true;
            condition3.Appearance.Options.UseForeColor = true;
            condition3.Column = this.colMonth3;
            condition3.Condition = FormatConditionEnum.Greater;
            condition3.Value1 = "0";
            condition4.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition4.Appearance.ForeColor = Color.Blue;
            condition4.Appearance.Options.UseFont = true;
            condition4.Appearance.Options.UseForeColor = true;
            condition4.Column = this.colMonth4;
            condition4.Condition = FormatConditionEnum.Greater;
            condition4.Value1 = "0";
            condition5.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition5.Appearance.ForeColor = Color.Blue;
            condition5.Appearance.Options.UseFont = true;
            condition5.Appearance.Options.UseForeColor = true;
            condition5.Column = this.colMonth5;
            condition5.Condition = FormatConditionEnum.Greater;
            condition5.Value1 = "0";
            condition6.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition6.Appearance.ForeColor = Color.Blue;
            condition6.Appearance.Options.UseFont = true;
            condition6.Appearance.Options.UseForeColor = true;
            condition6.Column = this.colMonth6;
            condition6.Condition = FormatConditionEnum.Greater;
            condition6.Value1 = "0";
            condition7.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition7.Appearance.ForeColor = Color.Blue;
            condition7.Appearance.Options.UseFont = true;
            condition7.Appearance.Options.UseForeColor = true;
            condition7.Column = this.colMonth7;
            condition7.Condition = FormatConditionEnum.Greater;
            condition7.Value1 = "0";
            condition8.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition8.Appearance.ForeColor = Color.Blue;
            condition8.Appearance.Options.UseFont = true;
            condition8.Appearance.Options.UseForeColor = true;
            condition8.Column = this.colMonth8;
            condition8.Condition = FormatConditionEnum.Greater;
            condition8.Value1 = "0";
            condition9.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition9.Appearance.ForeColor = Color.Blue;
            condition9.Appearance.Options.UseFont = true;
            condition9.Appearance.Options.UseForeColor = true;
            condition9.Column = this.colMonth9;
            condition9.Condition = FormatConditionEnum.Greater;
            condition9.Value1 = "0";
            condition10.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition10.Appearance.ForeColor = Color.Blue;
            condition10.Appearance.Options.UseFont = true;
            condition10.Appearance.Options.UseForeColor = true;
            condition10.Column = this.colMonth10;
            condition10.Condition = FormatConditionEnum.Greater;
            condition10.Value1 = "0";
            condition11.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition11.Appearance.ForeColor = Color.Blue;
            condition11.Appearance.Options.UseFont = true;
            condition11.Appearance.Options.UseForeColor = true;
            condition11.Column = this.colMonth11;
            condition11.Condition = FormatConditionEnum.Greater;
            condition11.Value1 = "0";
            condition12.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition12.Appearance.ForeColor = Color.Blue;
            condition12.Appearance.Options.UseFont = true;
            condition12.Appearance.Options.UseForeColor = true;
            condition12.Column = this.colMonth12;
            condition12.Condition = FormatConditionEnum.Greater;
            condition12.Value1 = "0";
            this.gbList.FormatConditions.AddRange(new StyleFormatCondition[] { condition, condition2, condition3, condition4, condition5, condition6, condition7, condition8, condition9, condition10, condition11, condition12 });
            this.gbList.GridControl = this.gcList;
            this.gbList.GroupPanelText = "K\x00e9o v\x00e0 Thả cột v\x00e0o đ\x00e2y để nh\x00f3m dữ liệu";
            this.gbList.IndicatorWidth = 40;
            this.gbList.Name = "gbList";
            this.gbList.OptionsBehavior.AllowIncrementalSearch = true;
            this.gbList.OptionsBehavior.AutoExpandAllGroups = true;
            this.gbList.OptionsBehavior.CopyToClipboardWithColumnHeaders = false;
            this.gbList.OptionsBehavior.FocusLeaveOnTab = true;
            this.gbList.OptionsCustomization.AllowFilter = false;
            this.gbList.OptionsCustomization.AllowSort = false;
            this.gbList.OptionsFilter.AllowColumnMRUFilterList = false;
            this.gbList.OptionsFilter.AllowFilterEditor = false;
            this.gbList.OptionsFilter.AllowMRUFilterList = false;
            this.gbList.OptionsLayout.StoreAllOptions = true;
            this.gbList.OptionsLayout.StoreAppearance = true;
            this.gbList.OptionsMenu.EnableColumnMenu = false;
            this.gbList.OptionsMenu.EnableGroupPanelMenu = false;
            this.gbList.OptionsNavigation.EnterMoveNextColumn = true;
            this.gbList.OptionsSelection.InvertSelection = true;
            this.gbList.OptionsSelection.MultiSelect = true;
            this.gbList.OptionsView.EnableAppearanceEvenRow = true;
            this.gbList.OptionsView.ShowAutoFilterRow = true;
            this.gbList.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never;
            this.gbList.OptionsView.ShowFooter = true;
            this.gbList.OptionsView.ShowGroupPanel = false;
            this.gbList.CustomDrawRowIndicator += new RowIndicatorCustomDrawEventHandler(this.gbList_CustomDrawRowIndicator);
            this.gridBand1.AppearanceHeader.Options.UseTextOptions = true;
            this.gridBand1.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            this.gridBand1.Caption = "Th\x00f4ng tin nh\x00e2n vi\x00ean";
            this.gridBand1.Columns.Add(this.gridColumn3);
            this.gridBand1.Columns.Add(this.gridColumn4);
            this.gridBand1.Columns.Add(this.gridColumn5);
            this.gridBand1.Fixed = FixedStyle.Left;
            this.gridBand1.MinWidth = 20;
            this.gridBand1.Name = "gridBand1";
            this.gridBand1.Width = 0xd5;
            this.gridColumn3.AppearanceCell.BackColor = Color.Snow;
            this.gridColumn3.AppearanceCell.Options.UseBackColor = true;
            this.gridColumn3.Caption = "M\x00e3 nh\x00e2n vi\x00ean";
            this.gridColumn3.FieldName = "EmployeeCode";
            this.gridColumn3.Name = "gridColumn3";
            this.gridColumn3.OptionsColumn.AllowEdit = false;
            this.gridColumn3.OptionsColumn.ReadOnly = true;
            this.gridColumn3.Visible = true;
            this.gridColumn3.Width = 0x41;
            this.gridColumn4.AppearanceCell.BackColor = Color.Snow;
            this.gridColumn4.AppearanceCell.Options.UseBackColor = true;
            this.gridColumn4.Caption = "Họ l\x00f3t";
            this.gridColumn4.FieldName = "FirstName";
            this.gridColumn4.Name = "gridColumn4";
            this.gridColumn4.OptionsColumn.AllowEdit = false;
            this.gridColumn4.OptionsColumn.ReadOnly = true;
            this.gridColumn4.Visible = true;
            this.gridColumn4.Width = 100;
            this.gridColumn5.AppearanceCell.BackColor = Color.Snow;
            this.gridColumn5.AppearanceCell.Options.UseBackColor = true;
            this.gridColumn5.Caption = "T\x00ean";
            this.gridColumn5.FieldName = "LastName";
            this.gridColumn5.Name = "gridColumn5";
            this.gridColumn5.OptionsColumn.AllowEdit = false;
            this.gridColumn5.OptionsColumn.ReadOnly = true;
            this.gridColumn5.Visible = true;
            this.gridColumn5.Width = 0x30;
            this.gridBand4.AppearanceHeader.Options.UseTextOptions = true;
            this.gridBand4.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            this.gridBand4.Caption = "Ph\x00e9p năm";
            this.gridBand4.Columns.Add(this.colYearOfWork);
            this.gridBand4.Columns.Add(this.colNumberOfYear);
            this.gridBand4.Columns.Add(this.colFurloughThisYear);
            this.gridBand4.MinWidth = 20;
            this.gridBand4.Name = "gridBand4";
            this.gridBand4.Width = 190;
            this.colYearOfWork.Caption = "Năm c\x00f4ng t\x00e1c";
            this.colYearOfWork.FieldName = "YearOfWork";
            this.colYearOfWork.Name = "colYearOfWork";
            this.colYearOfWork.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colYearOfWork.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colYearOfWork.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colYearOfWork.Visible = true;
            this.colYearOfWork.Width = 0x3e;
            this.colNumberOfYear.Caption = "Số năm t\x00ednh P.N";
            this.colNumberOfYear.FieldName = "NumberOfYear";
            this.colNumberOfYear.Name = "colNumberOfYear";
            this.colNumberOfYear.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colNumberOfYear.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colNumberOfYear.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colNumberOfYear.Visible = true;
            this.colNumberOfYear.Width = 0x41;
            this.colFurloughThisYear.Caption = "Số ng\x00e0y được nghỉ P.N";
            this.colFurloughThisYear.FieldName = "FurloughThisYear";
            this.colFurloughThisYear.Name = "colFurloughThisYear";
            this.colFurloughThisYear.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colFurloughThisYear.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colFurloughThisYear.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colFurloughThisYear.Visible = true;
            this.colFurloughThisYear.Width = 0x3f;
            this.gridBand2.AppearanceHeader.Options.UseTextOptions = true;
            this.gridBand2.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            this.gridBand2.Caption = "Th\x00e1ng";
            this.gridBand2.Columns.Add(this.colMonth1);
            this.gridBand2.Columns.Add(this.colMonth2);
            this.gridBand2.Columns.Add(this.colMonth3);
            this.gridBand2.Columns.Add(this.colMonth4);
            this.gridBand2.Columns.Add(this.colMonth5);
            this.gridBand2.Columns.Add(this.colMonth6);
            this.gridBand2.Columns.Add(this.colMonth7);
            this.gridBand2.Columns.Add(this.colMonth8);
            this.gridBand2.Columns.Add(this.colMonth9);
            this.gridBand2.Columns.Add(this.colMonth10);
            this.gridBand2.Columns.Add(this.colMonth11);
            this.gridBand2.Columns.Add(this.colMonth12);
            this.gridBand2.MinWidth = 20;
            this.gridBand2.Name = "gridBand2";
            this.gridBand2.Width = 480;
            this.gridBand3.AppearanceHeader.Options.UseTextOptions = true;
            this.gridBand3.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            this.gridBand3.Caption = "Tổng cộng";
            this.gridBand3.Columns.Add(this.colTotalDay);
            this.gridBand3.Columns.Add(this.colRemainDay);
            this.gridBand3.Fixed = FixedStyle.Right;
            this.gridBand3.MinWidth = 20;
            this.gridBand3.Name = "gridBand3";
            this.gridBand3.Width = 0x67;
            this.colTotalDay.AppearanceCell.BackColor = Color.SeaShell;
            this.colTotalDay.AppearanceCell.Font = new Font("Tahoma", 8.25f, FontStyle.Italic);
            this.colTotalDay.AppearanceCell.Options.UseBackColor = true;
            this.colTotalDay.AppearanceCell.Options.UseFont = true;
            this.colTotalDay.Caption = "Tổng cộng";
            this.colTotalDay.ColumnEdit = this.repCalculator;
            this.colTotalDay.FieldName = "TotalDay";
            this.colTotalDay.Name = "colTotalDay";
            this.colTotalDay.OptionsColumn.AllowEdit = false;
            this.colTotalDay.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colTotalDay.OptionsColumn.ReadOnly = true;
            this.colTotalDay.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colTotalDay.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colTotalDay.Visible = true;
            this.colTotalDay.Width = 0x39;
            this.colRemainDay.AppearanceCell.BackColor = Color.SeaShell;
            this.colRemainDay.AppearanceCell.Options.UseBackColor = true;
            this.colRemainDay.Caption = "Ph\x00e9p c\x00f2n";
            this.colRemainDay.ColumnEdit = this.repCalculator;
            this.colRemainDay.FieldName = "RemainDay";
            this.colRemainDay.Name = "colRemainDay";
            this.colRemainDay.OptionsColumn.AllowEdit = false;
            this.colRemainDay.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colRemainDay.OptionsColumn.ReadOnly = true;
            this.colRemainDay.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colRemainDay.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colRemainDay.Visible = true;
            this.colRemainDay.Width = 0x2e;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.Controls.Add(this.gcList);
            base.Controls.Add(this.hideContainerLeft);
            base.Controls.Add(this.barDockControlLeft);
            base.Controls.Add(this.barDockControlRight);
            base.Controls.Add(this.barDockControlBottom);
            base.Controls.Add(this.barDockControlTop);
            base.Name = "xucTimeKeeperFurlough";
            base.Size = new Size(0x431, 0x27b);
            this.repCalculator.EndInit();
            this.barManager1.EndInit();
            this.repYear.EndInit();
            this.dockManager1.EndInit();
            this.hideContainerLeft.ResumeLayout(false);
            this.dockPanel1.ResumeLayout(false);
            this.dockPanel1_Container.ResumeLayout(false);
            this.imageCollection2.EndInit();
            this.repEmployeeName.EndInit();
            this.repEmployee.EndInit();
            this.repositoryItemGridLookUpEdit1View.EndInit();
            this.repositoryItemComboBox1.EndInit();
            this.repDepartment.EndInit();
            this.repBranch.EndInit();
            this.repGroup.EndInit();
            this.gcList.EndInit();
            this.gbList.EndInit();
            base.ResumeLayout(false);
        }

        public void LoadGrid(int Level, string Code)
        {
            try
            {
                this.gcList.DataSource = new HRM_TIMEKEEPER_FURLOUGH().GetList(Level, Code, this.m_Year);
            }
            catch
            {
            }
        }

        private void RaiseClosedHander()
        {
            if (this.Closed != null)
            {
                this.Closed(this);
            }
        }

        private void repYear_EditValueChanged(object sender, EventArgs e)
        {
            this.LoadGrid(this.m_Level, this.m_Code);
        }

        private void repYear_EditValueChanging(object sender, ChangingEventArgs e)
        {
            this.m_Year = Convert.ToDateTime(e.NewValue.ToString()).Year;
        }

        public delegate void ClosedHander(object sender);
    }
}

